$(document).ready(function(){
	//加载下拉框
	getorgInfo();
});

function getorgInfo() {
	$.ajax({
   		async:false,
		url:'/ethic_list/ethic-list!findEntityById.action',
		type:'POST',
		data: {
			"id":id
		},
		dataType:'json',
		cache: false,
		success:function(data){
			Interceptor(data);
			if(data!=null){
				var dataObj=data.org;
				var isShow=data.detailShow;
				var dataorgRecords=data.orgRecords;
				var organizationRecordsCertificate=data.organizationRecordsCertificate;
				$("#name").html(dataObj.name);
				$("#organType").html(dataObj.organType);
				$("#organLevel").html(dataObj.organLevel);
				$("#organCode").html(dataObj.organCode);
				$("#address").html(dataObj.address);
				$("#postCode").html(dataObj.postCode);
				$("#contactUser").html(dataObj.contactUser);
				$("#contactPhone").html(dataObj.contactPhone);
				$("#contactMobile").html(dataObj.contactMobile);
				$("#contactEmail").html(dataObj.contactEmail);
				$("#province").html(dataObj.province.shortName);
				$("#responsiblePerson").html(dataObj.responsiblePerson);
				
				
				
				//2016-06-07 15:56:59 伦理
				$("#institutionEthicsCommitteeName").html(dataorgRecords.name);
				/*$("#institutionEthicsCommitteePersonnel").html(dataorgRecords.memberName);
				if(dataorgRecords.isConstitution==1) {
					$("#institutionEthicsCommitteeConstitution").html("是");
				}else if(dataorgRecords.isConstitution==1) {
					$("#institutionEthicsCommitteeConstitution").html("否");
				}
				if(dataorgRecords.isWorkingSystem==1) {
					$("#institutionEthicsCommitteeProgram").html("是");
				}else if(dataorgRecords.isWorkingSystem==1) {
					$("#institutionEthicsCommitteeProgram").html("否");
				}*/
				$("#telphone").html(dataorgRecords.telphone);
				$("#email").html(dataorgRecords.email);
				/*var attachmentPath = dataorgRecords.attachmentPath;
				if(null != attachmentPath && "" != attachmentPath){
					var attachmentTitle = attachmentPath.substring(attachmentPath.lastIndexOf("/")+1,attachmentPath.length)
					$("#attachmentPath").html("<a href='" + attachmentPath + "' target='_blank'>" +  attachmentTitle + "</a>");
				}
				$("#practiceRegistrationAuthority").html(dataorgRecords.practiceRegistrationAuthority);*/
			}
		},
		error:function(){
			//nexts(tag);
		}
	});
}


